home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
X User Tools
/
X User Tools (O'Reilly and Associates)(1994).ISO
/
sun4c
/
archive
/
tcltk.z
/
tcltk
/
man
/
catn
/
after.n
next >
Wrap
Text File
|
1994-09-20
|
1KB
|
67 lines
after(n) Tk Commands
_________________________________________________________________
NAME
after - Execute a command after a time delay
SYNOPSIS
after _m_s ?_a_r_g_1 _a_r_g_2 _a_r_g_3 ...?
_________________________________________________________________
DESCRIPTION
This command is used to delay execution of the program or to
execute a command in background after a delay. The _m_s argu-
ment gives a time in milliseconds. If _m_s is the only argu-
ment to after then the command sleeps for _m_s milliseconds
and returns. While the command is sleeping the application |
does not respond to X events and other events.
If additional arguments are present after _m_s, then a Tcl
command is formed by concatenating all the additional argu-
ments in the same fashion as the concat command. After
returns immediately but arranges for the command to be exe-
cuted _m_s milliseconds later in background. The command will |
be executed at global level (outside the context of any Tcl |
procedure). If an error occurs while executing the delayed
command then the tkerror mechanism is used to report the
error.
The after command always returns an empty string.
SEE ALSO
tkerror
KEYWORDS
delay, sleep, time
Tk 1